package com.erp.erpboot.mapper;

import com.erp.erpboot.pojo.CustomerClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "CustomerClassMapper")
public interface CustomerClassMapper {
    public int add(CustomerClass customerClass);

    public void delete(int id);

    public void deleteList(List<Integer> ids);

    public CustomerClass get(int id);

    public int update(CustomerClass customerClass);
    @Select("select * from category_ ")
    public List<CustomerClass> list();

    public int count();

    public List<CustomerClass> listByPage(@Param("pageSize")int pageSize, @Param("pageIndex")int pageIndex);

    public List<CustomerClass> getByParentID(int iParentID);
}
